package mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.userdetails.User;

import java.util.List;

/**
 * User: yuebo
 * Date: 13-8-29
 * Time: 下午10:05
 */
public interface UserMapper {
    @Select("SELECT * FROM j2ee_user WHERE username = #{userId}")
    UserBean getUser(@Param("userId") String userId);

    @Select("SELECT * FROM j2ee_userroles WHERE username = #{userId}")
    List<RoleBean> getUserRole(@Param("userId") String userId);
    @Select("SELECT * FROM fr_user WHERE user_id = #{userId}")
    FrUser getFrUser(int userId);
}
